import request from '@/utils/request'

var coursePrefix = '/courseService'

var examPrefix = '/examService'

// 获取考试统计信息
export function sumStatisticsExam() {
  return request({
    url: `${examPrefix}/examChats/count`,
    method: 'GET',
  })
}

// 试题类型统计
export function sumStatisticsExamType() {
  return request({
    url: `${examPrefix}/examChats/typePie`,
    method: 'GET',
  })
}

// 获取课程统计信息
export function sumStatisticsCourse() {
  return request({
    url: `${coursePrefix}/courseChats/count`,
    method: 'GET',
  })
}

// 课程类型统计
export function sumStatisticsCourseType() {
  return request({
    url: `${coursePrefix}/courseChats/typePie`,
    method: 'GET',
  })
}
